<div class="row">
    <div class="col-md-12 widget-module">
        <div class="box-widget">
            <div class="widget-head clearfix">
                <h4 class="pull-left"><?php echo $this->translate('display'); ?></h4>
            </div>
            
            <div class="widget-container">
                <div class="widget-block">
                    <div class="widget-content">
                        <form id="usergroup" method="post" class="form-horizontal form-box">
                            <div class="form-group">
                                <label class="col-lg-2 control-label"><?php echo $this->translate('post_per_page'); ?></label>
                                <div class="col-lg-3">
                                    <input class="form-control" type="text" value="<?php if(isset($this->page['post_per_page'])) echo $this->page['post_per_page']; ?>" name="page[post_per_page]" class="form-control" placeholder="<?php echo $this->translate('post_per_page'); ?>" />
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label class="col-lg-2 control-label"><?php echo $this->translate('product_per_page'); ?></label>
                                <div class="col-lg-3">
                                    <input class="form-control" type="text" value="<?php if(isset($this->page['product_per_page'])) echo $this->page['product_per_page']; ?>" name="page[product_per_page]" class="form-control" placeholder="<?php echo $this->translate('product_per_page'); ?>" />
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label class="col-lg-2 control-label"><?php echo $this->translate('out of stock level'); ?></label>
                                <div class="col-lg-3">
                                    <input class="form-control" type="text" value="<?php if(isset($this->page['out_of_stock_level'])) echo $this->page['out_of_stock_level']; ?>" name="page[out_of_stock_level]" class="form-control" placeholder="<?php echo $this->translate('out of stock level'); ?>" />
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label class="col-lg-2 control-label">&nbsp;</label>
                                <div class="col-lg-4">
                                    <div class="form-actions">
                                        <button id="save" type="submit" class="btn btn-primary">
                                            <i class="icon-save"></i>
                                            <?php echo $this->translate('save'); ?>
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="row">
    <div class="col-md-12 widget-module">
        <div class="box-widget">
            <div class="widget-head clearfix">
                <h4 class="pull-left"><?php echo $this->translate('website info'); ?></h4>
            </div>
            
            <div class="widget-container">
                <div class="widget-block">
                    <div class="widget-content">
                        <form id="usergroup" method="post" class="form-horizontal form-box">
                            <div class="form-group">
                                <label class="col-lg-2 control-label"><?php echo $this->translate('web title'); ?></label>
                                <div class="col-lg-3">
                                    <input class="form-control" type="text" value="<?php if(isset($this->webinfo['title'])) echo $this->webinfo['title']; ?>" name="webinfo[title]" class="form-control" placeholder="<?php echo $this->translate('web title'); ?>" />
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label class="col-lg-2 control-label"><?php echo $this->translate('web url'); ?></label>
                                <div class="col-lg-3">
                                    <input class="form-control" type="text" value="<?php if(isset($this->webinfo['url'])) echo $this->webinfo['url']; ?>" name="webinfo[url]" class="form-control" placeholder="<?php echo $this->translate('web url'); ?>" />
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label class="col-lg-2 control-label"><?php echo $this->translate('email'); ?></label>
                                <div class="col-lg-3">
                                    <input class="form-control" type="text" value="<?php if(isset($this->webinfo['email'])) echo $this->webinfo['email']; ?>" name="webinfo[email]" class="form-control" placeholder="<?php echo $this->translate('email'); ?>" />
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label class="col-lg-2 control-label"><?php echo $this->translate('logo'); ?></label>
                                <div class="col-lg-6">
                                    <div class="input-group">
                                        <input id="logo" class="form-control" type="text" value="<?php if(isset($this->webinfo['logo'])) echo $this->baseUrl('/upload/') . $this->webinfo['logo']; ?>" name="webinfo[logo]" class="form-control" placeholder="<?php echo $this->translate('logo'); ?>" />
                                        <span class="input-group-btn">
                                            <a id="iframe-btn" href="<?php echo $this->baseUrl(); ?>/filemanager/dialog.php?type=1&subfolder=&editor=mce_0&field_id=logo">
                                                <button class="btn btn-default" type="button">
                                                    <span class="icon-folder-open" aria-hidden="true"></span>
                                                </button>
                                            </a>
                                        </span>
                                    </div>
                                    <?php echo $this->messageError['image']; ?>
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label class="col-lg-2 control-label">&nbsp;</label>
                                <div class="col-lg-4">
                                    <div class="form-actions">
                                        <button id="save" type="submit" class="btn btn-primary">
                                            <i class="icon-save"></i>
                                            <?php echo $this->translate('save'); ?>
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="row">
    <div class="col-md-12 widget-module">
        <div class="box-widget">
            <div class="widget-head clearfix">
                <h4 class="pull-left"><?php echo $this->translate('mail server'); ?></h4>
            </div>
            
            <div class="widget-container">
                <div class="widget-block">
                    <div class="widget-content">
                        <form id="usergroup" method="post" class="form-horizontal form-box">
                            <div class="form-group">
                                <label class="col-lg-2 control-label"><?php echo $this->translate('email'); ?></label>
                                <div class="col-lg-3">
                                    <input class="form-control" type="text" value="<?php if(isset($this->mail_server['email'])) echo $this->mail_server['email']; ?>" name="mail_server[email]" class="form-control" placeholder="<?php echo $this->translate('email'); ?>" />
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label class="col-lg-2 control-label"><?php echo $this->translate('mail server'); ?></label>
                                <div class="col-lg-3">
                                    <input class="form-control" type="text" value="<?php if(isset($this->mail_server['address'])) echo $this->mail_server['address']; ?>" name="mail_server[address]" class="form-control" placeholder="<?php echo $this->translate('mail server'); ?>" />
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label class="col-lg-2 control-label"><?php echo $this->translate('password'); ?></label>
                                <div class="col-lg-3">
                                    <input class="form-control" type="password" value="<?php if(isset($this->mail_server['password'])) echo $this->mail_server['password']; ?>" name="mail_server[password]" class="form-control" placeholder="<?php echo $this->translate('password'); ?>" />
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label class="col-lg-2 control-label"><?php echo $this->translate('port'); ?></label>
                                <div class="col-lg-3">
                                    <input class="form-control" type="text" value="<?php if(isset($this->mail_server['port'])) echo $this->mail_server['port']; ?>" name="mail_server[port]" class="form-control" placeholder="<?php echo $this->translate('port'); ?>" />
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label class="col-lg-2 control-label">&nbsp;</label>
                                <div class="col-lg-4">
                                    <div class="form-actions">
                                        <button id="save" type="submit" class="btn btn-primary">
                                            <i class="icon-save"></i>
                                            <?php echo $this->translate('save'); ?>
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="row">
    <div class="col-md-12 widget-module">
        <div class="box-widget">
            <div class="widget-head clearfix">
                <h4 class="pull-left"><?php echo $this->translate('social'); ?></h4>
            </div>
            
            <div class="widget-container">
                <div class="widget-block">
                    <div class="widget-content">
                        <form id="usergroup" method="post" class="form-horizontal form-box">
                            <div class="form-group">
                                <label class="col-lg-2 control-label"><?php echo $this->translate('facebook'); ?></label>
                                <div class="col-lg-3">
                                    <input class="form-control" type="text" value="<?php if(isset($this->social['facebook'])) echo $this->social['facebook']; ?>" name="social[facebook]" class="form-control" placeholder="<?php echo $this->translate('facebook'); ?>" />
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label class="col-lg-2 control-label"><?php echo $this->translate('googleplus'); ?></label>
                                <div class="col-lg-3">
                                    <input class="form-control" type="text" value="<?php if(isset($this->social['googleplus'])) echo $this->social['googleplus']; ?>" name="social[googleplus]" class="form-control" placeholder="<?php echo $this->translate('googleplus'); ?>" />
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label class="col-lg-2 control-label"><?php echo $this->translate('twitter'); ?></label>
                                <div class="col-lg-3">
                                    <input class="form-control" type="text" value="<?php if(isset($this->social['twitter'])) echo $this->social['twitter']; ?>" name="social[twitter]" class="form-control" placeholder="<?php echo $this->translate('twitter'); ?>" />
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label class="col-lg-2 control-label">&nbsp;</label>
                                <div class="col-lg-4">
                                    <div class="form-actions">
                                        <button id="save" type="submit" class="btn btn-primary">
                                            <i class="icon-save"></i>
                                            <?php echo $this->translate('save'); ?>
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="row">
    <div class="col-md-12 widget-module">
        <div class="box-widget">
            <div class="widget-head clearfix">
                <h4 class="pull-left"><?php echo $this->translate('mailchimp'); ?></h4>
            </div>
            
            <div class="widget-container">
                <div class="widget-block">
                    <div class="widget-content">
                        <form id="usergroup" method="post" class="form-horizontal form-box">
                            <div class="form-group">
                                <label class="col-lg-2 control-label"><?php echo $this->translate('key'); ?></label>
                                <div class="col-lg-3">
                                    <input class="form-control" type="text" value="<?php if(isset($this->mailchimp['key'])) echo $this->mailchimp['key']; ?>" name="mailchimp[key]" class="form-control" placeholder="<?php echo $this->translate('key'); ?>" />
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label class="col-lg-2 control-label"><?php echo $this->translate('id'); ?></label>
                                <div class="col-lg-3">
                                    <input class="form-control" type="text" value="<?php if(isset($this->mailchimp['id'])) echo $this->mailchimp['id']; ?>" name="mailchimp[id]" class="form-control" placeholder="<?php echo $this->translate('id'); ?>" />
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label class="col-lg-2 control-label">&nbsp;</label>
                                <div class="col-lg-4">
                                    <div class="form-actions">
                                        <button id="save" type="submit" class="btn btn-primary">
                                            <i class="icon-save"></i>
                                            <?php echo $this->translate('save'); ?>
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
$(document).ready(function(){
    $('#iframe-btn').fancybox({	
    	'width'		: 900,
    	'height'	: 600,
    	'type'		: 'iframe',
        'autoScale'    	: false,
        'margin'    : 70,
    });
})
</script>